package routes

import (
	"el/app/http/AdminController"
	"el/app/middleware"
	"el/app/ws"

	"github.com/labstack/echo/v4"
)

func RouterRegister(route *echo.Echo) {
	api := route.Group("/api/")
	Api(api)

	admin := route.Group("/admin/", middleware.AdminAuth, middleware.AdminLog)
	Admin(admin)

	route.Any("/ws", ws.NewVisitor)
	route.Any("/test", AdminController.Test)
	route.Any("/test2", AdminController.Test2)
}
